﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityPlayerUtil.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-15
//    @Email			:    445267987@qq.com
//    @Module           :    NFCityPlayerUtil
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFObjCommon/NFObject.h"

class NFCityPlayer;

class NFCityPlayerUtil
{
public:
    static NFCityPlayer* GetPlayerByRoleID(uint64_t roleID);
    static NFCityPlayer* CreatePlayer(uint64_t roleID);
    static int DeletePlayer(NFCityPlayer* pPlayer);
    static int RemovePlayer(NFCityPlayer * pPlayer);
public:
    static int OfflinePlayer(NFCityPlayer* pPlayer);

public:
    static bool IsPlayerInTeam(NFCityPlayer* pPlayer);
    static bool IsPlayerInSameTeam(NFCityPlayer* pPlayer, NFCityPlayer* pTargetPlayer);
    static bool IsPlayerTeamLeader(NFCityPlayer* pPlayer);
};
